package com.yc.pre.consts;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * TODO
 *
 * @author : C.H Wong
 * @version : 1.0
 * @since : 2020/12/23 15:25
 */
@AllArgsConstructor
@Getter
public enum StatusCodeConst {
    OK(20000, "成功"),
    ERROR(20001, "失败"),
    LOGIN_ERROR(30001, "用户名或密码错误"),
    CODE_ERROR(30003, "验证码错误"),
    NO_PHONE(30005, "请输入手机号"),
    ACCOUNT_LOCK(30006, "账号锁定"),
    ACCOUNT_EXIST(30008, "账号已存在"),
    PHONE_NOT_EXIST(30009, "手机号不存在"),
    PIC_CODE_ERROR(30010, "图片验证码错误"),
    //
    REMOTE_ERROR(40001, "远程调用失败"),
    METHOD_NOT_ALLOWED(40005, "请求方式不支持！"),
    //
    PARAM_ERROR(50001, "参数错误"),
    //
    FILE_UPLOAD_ERROR(60001, "文件上传异常"),
    //
    ACCESS_ERROR(70001, "权限不足"),
    //
    DATA_NOT_FOUND(80001, "数据未找到"),

    DEFAULT_ERROR(90001, "未知错误"),
    ;

    private Integer code;

    private String message;
}
